/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package memsim.instructions;
import memsim.RegisterHandler;
import memsim.MemoryManager;

/**
 *
 * @author joe
 */
public class STRS {

    public void storeInMemory(int regWithAddress, int regWithValue, MemoryManager m, RegisterHandler regHandler ){
        m.setValue(regHandler.getValue(regWithAddress), regHandler.getValue(regWithValue));
        System.out.println(regHandler.getValue(regWithAddress));
        System.out.println(regHandler.getValue(regWithValue));
    }

}
